int VerbFunction(int position[8][8])
{
    int f = 0;
    int a = 0;
    int weights[8][8] = {
        {-5, -4, -3,  1,  5,  6,  7,  2},
        {-3, -2, -1,  2,  6,  7,  8,  8},
        {-1,  0,  2,  3,  7,  9,  9, 10},
        { 5,  6,  7,  8, 13, 13, 12, 12},
        { 6,  7,  8, 11, 15, 16, 15, 13},
        { 7,  8, 10, 12, 18, 19, 20, 21},
        { 7,  9, 10, 12, 19, 20, 21, 23},
        { 2,  9, 11, 11, 20, 21, 22, 23}
    };

  for (int i = 0; i < 8; i++)
      for(int j = 0; j < 8; j++)
      {
          if (position[i][j] == 2)
          {
              f += weights[i][j];
          }

          if(position[i][j] == 1)
          {
              f -= weights[7-i][7-j];
          }
    }

  return f;
}
/*
  {
   {-5,-4,-3,1 ,5 ,6 ,7 ,2 },
   {-3,-2,-1,2 ,6 ,7 ,8 ,8 },
   {-1, 0,2 ,3 ,7 ,9 ,9 ,10},
   {5 ,6 ,7 ,8 ,13,13,12,12},
   {6 ,7 ,8 ,9 ,15,15,14,13},
   {7 ,8 ,9 ,11,18,19,20,21},
   {7 ,9 ,9 ,11,19,20,21,23},
   {2 ,9 ,10,10,20,21,22,23}
  };

*/
